package com.iot08.api.controller;

import com.iot08.api.controller.base.BaseController;
import com.iot08.api.service.DeviceAttentionService;
import com.iot08.api.service.DeviceMessageService;
import com.iot08.api.vo.request.GetMessageReqVO;
import com.iot08.api.vo.request.base.BaseAccountReqVO;
import com.iot08.common.utils.response.ResponseMap;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author cwj
 * @description 查询设备
 * @date 2025/4/8 11:50
 **/
@Slf4j
@RestController
@RequestMapping("getway/deviceMessage")
public class DeviceMessageController  extends BaseController {

    @Resource
    private DeviceMessageService deviceMessageService;


    /**
     * @description
     * @author cwj
     * @param [vo]
     * @return com.iot08.common.utils.response.ResponseMap
     * @date @time 2025/4/8 14:04
     **/
    @GetMapping("/queryLatestMsgInfo")
    public ResponseMap queryLatestMsgInfo(@Validated BaseAccountReqVO vo) {
        return deviceMessageService.queryLatestMsgInfo(vo);
    }

}
